#include "pluginwidget.h"
#include "plugin1.h"
#include "ui_pluginwidget.h"

#include <QDebug>
PluginWidget::PluginWidget(QWidget *parent)
    : QWidget(parent), ui(new Ui::PluginWidget) {
  ui->setupUi(this);

  connect(ui->pushButton, &QAbstractButton::clicked, this, [=] {
    auto plugin1 = Plugin1::instance();
    qDebug() << "widget1: get plugin2 label: " << plugin1->getPlugin2Label();
  });
}

PluginWidget::~PluginWidget() { delete ui; }
